package com.xiaocz.common;

/**
 * 公有类的定义
 */
public class Common {


    public static final String APP_ID = "wx40e1a4fec2341561";//wxb2a7507858cc2257

    /**
     * 定义常量
     */
    public interface Constant {

        /**
         * 环境《《《《正式版本-false  测试-true》》》》
         */
        boolean testing = false;

        /**
         * API接口
         */
        String API_IP = "http://api.zjrdj.com/";//IP
        String API_H5 = "http://h5.zjrdj.com/";

//        String API_IP = "http://testapi.zjrdj.com/";//IP
//        String API_H5 = "http://testh5.zjrdj.com/";

        // 手机号的正则,11位手机号
        String REGEX_MOBILE = "[1][3,4,5,6,7,8,9][0-9]{9}$";
        String pageSize = "10";//每页数据
    }

    /**
     * 时间格式
     */
    public interface DateType {
        String dateY = "yyyy年";
        String dateYM = "yyyy年MM月";
        String dateYm = "yyyy-MM";
        String dateCH = "yyyy年MM月dd日";
        String dateCHIF = "yyyy年MM月dd日 HH:mm:ss";
        String dateIF = "yyyy-MM-dd HH:mm:ss";
        String date = "yyyy-MM-dd";
    }

    public interface Static {
        String auto_login = "AUTO_LOGIN", remember_pwd = "REMEMBER_PWD", name_key = "NAME", pwd_key = "PWD";
    }

    /**
     * 状态码
     */
    public interface Code {
        /**
         * 成功
         */
        int SUCCESS = 200;
        /**
         * 失败
         */
        int ERORR = 201;
    }


}
